<%@ page language="java" pageEncoding="UTF-8"%>
<%@include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>资讯搜索</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<link href="css/style.css" rel="stylesheet" type="text/css" />
	</head>
	<body>
		<div id="container_wrapper">
			<div id="container">
				<!-- header -->
				<jsp:include page="header.jsp" flush="true"></jsp:include>
				<div id="content">
					<div id="leftcolumn">
						<h2>搜索结果：</h2>
						<br />
						<c:choose>
							<c:when test="${requestScope.QRESULT eq null}">
								<h2>
									对不起，找不到您想要的相关信息！
								</h2>
							</c:when>
							<c:otherwise>
								<div class="post">
									<c:forEach var="result" items="${requestScope.QRESULT}">
										<div>
											<a href="getArticle?articleId=${result.articleId}" target="_blank"><span>${result.articleTitle}</span></a>&nbsp;&nbsp;
											作者：
											<span>${result.authorName}</span>&nbsp;&nbsp;
											发表于：
											<span><fmt:formatDate
													value="${result.articleCreateTime }"
													pattern="yyyy年MM月dd日" /> </span>
										</div>			
									</c:forEach>
								</div>	
							</c:otherwise>
						</c:choose>
						<br />
					</div>
					<!-- rightcolumn -->
					<jsp:include page="rightcolumn.jsp" flush="true"></jsp:include>
				</div>
				<!--footer  -->
				<jsp:include page="footer.jsp" flush="true"></jsp:include>

			</div>
		</div>
	</body>
</html>
